package com.example.a14110100409.yuejiandemo.service;



import com.example.a14110100409.yuejiandemo.javabean.ListResult;
import com.example.a14110100409.yuejiandemo.javabean.ListResult_1;
import com.example.a14110100409.yuejiandemo.javabean.ShaiTuComment;
import com.example.a14110100409.yuejiandemo.javabean.ShaiTuInfo;
import com.example.a14110100409.yuejiandemo.javabean.ShaiTuList;
import com.example.a14110100409.yuejiandemo.javabean.TeaList;

import java.util.List;

import okhttp3.MultipartBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/9/20 0020.
 */

public interface ActImpls {
    /**
     * 首页推荐列表
     * */
    @POST("lists")
    Call<List<ListResult>> getActList();
    /**
     * 首页推荐列表活动详情
     * */
    @POST("get/mod/activity/")
    Call<ListResult_1> getActInfo(@Query("id") String id);
    /**
     * 教师列表
     * */
    @POST("lists/mod/master/")
    Call<List<TeaList>> getTeaList(@Query("page") int page);

    /*//俱乐部列表
    @GET("lists/mod/club")
    Call<List<ClubList>> getClubList();*/

    /*//俱乐部简介
    @GET("get/mod/club/")
    Call<ClubInfo> getClubInfo(@Query("id") String id);*/

    /*//俱乐部课程
    @GET("get/mod/club/SessionID/2ul9sj8vlfofj122e1s98048k2/related/1/")
    Call<ClubCourse> getClubCourse(@Query("id") String id,
                                   @Query("map") String map);*/
    /*//俱乐部视频
    @GET("get/mod/club/SessionID/2ul9sj8vlfofj122e1s98048k2/related/1/")
    Call<ClubVideo> getClubVideo(@Query("id") String id,
                                 @Query("map") String map);*/

    //晒图列表
    @GET("lists/mod/shaitu/related/1")
    Call<List<ShaiTuList>> getShaiTuList();

    //发布晒图
    @Multipart
    @POST("fcreate/mod/shaitu/userid/{userid}/title/{title}")
    Call<ResponseBody> signpic(
            @Path("userid") int uid,
            @Path("title") String title,
            //@Path("club_id") String cid,
            @Part MultipartBody.Part file
    );



    //训练报名
    @GET("create/mod/{mod}/participantname/{participantname}/act_id/{act_id}/participanttel/{participanttel}/" +
            "adultnum/{adultnum}/studentnum/{studentnum}/paytype/{paytype}/pay/{pay}/paynotice/{paynotice}/" +
            "insurance/{insurance}" +
            "/userid/{userid}/SessionID/{SessionID}")
    Call<Integer> signAct(
            @Path("mod") String mod,
            @Path("participantname") String participantname,
            @Path("act_id") String act_id,
            @Path("participanttel") String participanttel ,
            @Path("adultnum") String adultnum,
            @Path("studentnum")String studentnum,
            @Path("paytype") String paytype,
            @Path("pay") String pay,
            @Path("paynotice") String paynotice,
            @Path("insurance") String insurance,
            @Path("userid") int userid,
            @Path("SessionID") String SessionID
    );


    //晒图详情
    @GET("get/mod/shaitu/")
    Call<ShaiTuInfo> getShaiTuInfo(@Query("id") String id,
                                   @Query("related") String related);
    //晒图评论
    @GET("slists/mod/shaireply/related/1/")
    Call<List<ShaiTuComment>> getShaiTuComment(@Query("shaitu_id") String shaitu_id);
    //添加晒图评论
    @GET("create/mod/shaireply/SessionID/lgj98rfkiqvenhrk2o7oe2po81")
    Call<Integer> addShaiTuComment(@Query("shaitu_id") String shaitu_id,
                                   @Query("userid") String userid,
                                   @Query("reply_userid") String reply_userid,
                                   @Query("reply") String reply

    );





}